﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master" CodeBehind="ResourceView.aspx.cs" Inherits="WebView_SSResourceManager.UserPages.ResourceView" %>


<asp:Content runat="server" ContentPlaceHolderID="MainContent">
    <link rel="stylesheet" type="text/css" href="../style.css">        
    <div>
        
    <asp:Table ID="Table1" runat="server">
        
        <asp:TableHeaderRow ID="TableHeaderRow1" runat="server">
            <asp:TableCell ID="TableCell1" runat="server">
             <asp:Label runat="server" ID="lbl_ResourceName"></asp:Label>
            </asp:TableCell> 
        </asp:TableHeaderRow>         
        
        <asp:TableRow ID="TableRow1" runat="server"></asp:TableRow>

        <asp:TableHeaderRow ID="TableHeaderRow2" runat="server">
            <asp:TableCell ID="TableCell2" runat="server"> Working time </asp:TableCell>
            <asp:TableCell ID="TableCell3" runat="server"> Max usage time </asp:TableCell>
            <asp:TableCell ID="TableCell4" runat="server"> Simultaneous use </asp:TableCell>
            <asp:TableCell ID="TableCell5" runat="server"> Available </asp:TableCell>
            <asp:TableCell ID="TableCell6" runat="server"> Only auto time </asp:TableCell>
        </asp:TableHeaderRow>
        
        <asp:TableRow>
            <asp:TableCell ID="TableCell7" runat="server">
                From 
                <asp:Label runat="server" ID="lbl_StartTime"></asp:Label>
                 to 
                 <asp:Label runat="server" Id="lbl_EndTime"></asp:Label>
            </asp:TableCell>
            <asp:TableCell ID="TableCell8" runat="server"> <asp:Label runat="server" Id="lbl_UseTime"></asp:Label> </asp:TableCell>
            <asp:TableCell ID="TableCell9" runat="server">Max <asp:Label runat="server" Id="lbl_UserCount"></asp:Label> people </asp:TableCell>
            <asp:TableCell ID="TableCell10" runat="server"> <asp:Label runat="server" Id="lbl_Available"></asp:Label> </asp:TableCell>
            <asp:TableCell ID="TableCell11" runat="server"> <asp:Label runat="server" Id="lbl_AutoTime"></asp:Label> </asp:TableCell>
        </asp:TableRow>
        
    </asp:Table>

    </div>
           
    <div>
    
    <asp:ListView ID="lstV_ResourceView" runat="server">
        
            
          <EmptyDataTemplate>
                <table id="Table1" runat="server" style="">
                    <tr>
                        <td> This resource is totally free </td>
                    </tr>
                </table>
            </EmptyDataTemplate>

            <ItemTemplate>
                <tr style="">
                    <td>
                        <asp:Label ID="Label1" runat="server" Text='<%# ResourceViewPresenter.GetLogin(Eval("IdUser")) %>' />
                    </td>
                    <td>
                        <asp:Label ID="Label2"  runat="server" Text='<%# Eval("StartTime") %>' />
                    </td>
                    <td>
                        <asp:Label ID="Label3"  runat="server" Text='<%# Eval("FinishTime") %>' />
                    </td>
                    
                </tr>
            </ItemTemplate>
            
         

            <LayoutTemplate>
                <table id="listTable" runat="server">
                    <tr id="Header" runat="server">
                        <td id="Td1" runat="server">
                            <table ID="itemPlaceholderContainer" runat="server" border="0" style="">
                                <tr id="Tr2" runat="server" style="">
                                    <th id="Th1" runat="server">
                                        User</th>
                                    <th id="Th2" runat="server">
                                        Start time</th>
                                    <th id="Th3" runat="server">
                                        Finish time</th>
                                    </tr>
                                <tr ID="itemPlaceholder" runat="server">
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr id="Tr3" runat="server">
                        <td id="Td2" runat="server" style="">
                        </td>
                    </tr>
                </table>
            </LayoutTemplate>

       </asp:ListView>
       <asp:Button id="btn_GetInLine" runat="server" Text="Stay in line" 
            onclick="BtnGetInLineClick"></asp:Button>
       <asp:Button id="btn_Booking" runat="server" Text="Booking" 
            onclick="BtnBookingClick"></asp:Button> <br/>
            <asp:Label runat="server" id="lbl_BookingrResult" EnableViewState="False"></asp:Label>
    </div>
           
    <div>
        <table  cellSpacing="0" cellPadding="1" border="0" align="center" bgColor="ffffff" class="chattable">
				<tr>
					<td>
						<iframe class="chatframe" src="TheChatScreenWin.aspx">Chat</iframe>
					</td>
				</tr>
				<tr>
					<td align="right">
                        Write message here:
						<asp:TextBox id="TB_ToSend" runat="server" Width="300px" tabIndex="1"></asp:TextBox>
						<asp:Button id="BT_Send" runat="server" Text="Send" Width="80px" tabIndex="2"></asp:Button>
					</td>
				</tr>
			</table>
    </div>
</asp:Content>

